package com.sjq.demo.service.impl;

import com.sjq.demo.entity.RbacRole;
import com.sjq.demo.mapper.RbacRoleMapper;
import com.sjq.demo.service.RbacRoleService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 角色表 服务实现类
 * </p>
 *
 * @author yer
 * @since 2021-02-26
 */
@Service
public class RbacRoleServiceImpl extends ServiceImpl<RbacRoleMapper, RbacRole> implements RbacRoleService {

    @Override
    public List<RbacRole> getRolesByUserId(String userid) {
        return getBaseMapper().getRolesByUserId(userid);
    }
}
